package com.gnar.dis;

import android.graphics.Bitmap;

public class BackGround extends Sprite {

	public BackGround(Bitmap bitmap, float startPosX, float startPosY) {
		super(bitmap, startPosX, startPosY);
	}
	@Override
	public void update(EventHandler event) {
		mPosX = mPosX + mAccelX;
		if (mPosX > 800){
			destroy();
		}
	}
	public Sprite setAccelX(float i){
		mAccelX = i;
		return this;
	}
}
